package com.tsxy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 飞
 * @since 2022-03-24
 */
@Getter
@Setter
  @TableName("order_details")
@ApiModel(value = "OrderDetails对象", description = "")
public class OrderDetails implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("id")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("图书id")
      private Integer bookId;

      @ApiModelProperty("订单id")
      private String orderId;

      @ApiModelProperty("最终价格")
      private BigDecimal resultPrice;

      @ApiModelProperty("标价")
      private BigDecimal price;

      @ApiModelProperty("数量")
      private Integer count;

      @ApiModelProperty("图书类型")
      private String bookType;

      @TableField(exist = false)
      private Book book;
    @TableField(exist = false)
      private UsedBook usedBook;

}
